package com.javaeedev.junit;

public class Calculator {

	public long factorial(long n) {
		if(n<1)
			throw new IllegalArgumentException();
		long r = 1;
		for(long i=2; i<=n; i++) {
			r *= i;
		}
		return r;
	}

	public int div(int a, int b) {
		return a / b;
	}

}
